import React from "react";
import avatar from '../../images/avatar.png';

export class From extends React.Component {
  state= {
    txt: ''
  }
  
  render() {
    return (
      <div className="comment-send-container">
          <div>
            <img className="user-head" src={avatar} alt="头像" />
          </div>
          <div className="comment-send">
            <div className="textarea-container">
              <textarea
                cols="80"
                rows="5"
                placeholder="发条友善的评论"
                className="ipt-txt"
                value={this.state.txt}
                onChange={this.handleTxt}
                ref={this.txtRef}
              />
              <button className="comment-submit" onClick={this.submitBtn}>发表评论</button>
            </div>
            <div className="comment-emoji">
              <i className="face"></i>
              <span className="text">表情</span>
            </div>
          </div>
        </div>
    )
  }
}